package com.dinnerwithfriends.client;

import com.dinnerwithfriends.client.authentication.facebook.FacebookLoginButton;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * 
 * @UserInterface
 */
public class LandingPage extends VerticalPanel {

	public LandingPage() {

		this.setSpacing(30);

		this.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

		MainPage.mainPanel.clear();

		MainPage.rightPanel.clear();

		HTML lblDinnerWith = new HTML(
				"<b><font size=5 color='gray'>::: DINNER WITH FRIENDS :::</font></b>");
		this.add(lblDinnerWith);

		HTML lblSlogan = new HTML("<b>Connecting you with the right people</b>");
		this.add(lblSlogan);

		// rootPanel.add(new GoogleSignInButton(), 250, 160);

		HTML dinnerImage = new HTML("<img src='images/dinnerWithFriends.jpg'>");

		this.add(dinnerImage);

		this.add(new FacebookLoginButton());

		MainPage.mainPanel.add(this);

	}
}
